<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>运算符</title>
</head>
<body>
	
</body>
<script>
	console.log(1 + 1);  //2
	console.log(1 - 1);  //0
	console.log(1 * 1);  //1
	console.log(1 / 1);  //1
	console.log(5 % 3);  //2
	console.log(5 % 5);  //0
	console.log(NaN + 2);
	console.log(2 + 2 * 3);
	var num = 1+ 0.3;
	console.log(num);
	console.log(0.07 *100);
	var num1 = 1;
	// num1++;
	++num1;
	console.log(num1);
	console.log(1 == '1');
	console.log(1 === '1');
	console.log(1 > 2 &&  5 > 2);   //一假则假
	console.log(4 > 2 &&  5 > 2);
	console.log(5 > 2 || 1 > 8);     //一真则真
	var a  = !true
	console.log(a);
	var b  = !false
	console.log(b);
	var c = 10;
	c+=5
	 // var d =c + 5
	 // console.log(d);
	 console.log(c);
</script>
</html>